﻿@page
@{ Layout = "_Layout"; }
@section Styles{
    <link href="/sitefiles/assets/lib/geeks/css/theme.min.css" rel="stylesheet" type="text/css" />
}

<el-row :gutter="8" class="mx-3">
    <el-col :span="8" class="text-center">
        <apexchart type="radialBar" :options="passChartOptions" :series="passSeries" height="310"></apexchart>
    </el-col>
    <el-col :span="16">
        <el-card>
            <div>
                <el-row :gutter="8" class="bg-light p-3">
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ course.credit }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">学分</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ course.studyHour }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">课时</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                    <el-col :span="8">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ utils.formatDuration(course.duration) }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">学时</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                </el-row>
                <el-row :gutter="8" class="mt-3 bg-light p-3">
                    <el-col :span="12">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ course.totalUser }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">学习人数</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                    <el-col :span="12">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ course.totalPassUser }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">完成人数</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                </el-row>
                <el-row :gutter="8" class="mt-3 bg-light p-3">
                    <el-col :span="12">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ course.evaluationAvg }}</span>
                                        <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" class="bi bi-star-fill text-warning" viewBox="0 0 16 16">
                                            <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"></path>
                                        </svg>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">课程评价</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                    <el-col :span="12">
                        <div class="card rounded-0 bg-white border-top border-muted border-3 card-hover-with-icon">
                            <div class="card-body p-3">
                                <div class="d-flex align-items-center justify-content-between">
                                    <div class="fw-bold">
                                        <span>{{ course.evaluationUser }}</span>
                                    </div>
                                    <span class="px-3 py-2 rounded-pill card-icon">评价人数</span>
                                </div>
                            </div>
                        </div>
                    </el-col>
                </el-row>
            </div>
        </el-card>
    </el-col>
</el-row>

@section Scripts{
    <script src="/sitefiles/assets/lib/apexcharts/apexcharts.js" type="text/javascript"></script>
    <script src="/sitefiles/assets/lib/apexcharts/vue-apexcharts.js" type="text/javascript"></script>
    <script src="/sitefiles/assets/js/admin/study/studyCourseManagerAnalysis.js" type="text/javascript"></script>
}